import request from '@/utils/request'
// 获取菜品管理表格数据
export const getDishList = (params) => {
  return request.get('dish/page', {
    params
  })
}
// 添加菜品
export const addDish = (data) => {
  return request.post('/dish', data)
}
// 删除某个菜品
export const deleteDish = (id) => {
  return request.delete(`/dish?ids=${id}`)
}
// 修改商品状态
export const changeStatus = (data) => {
  return request.post(`/dish/status/${data.status}?ids=${data.id}`)
}
